package chapter03.example03;

class Student {
    String name;
    int age;
    void read(){
        System.out.println("大家好，我是" + name + "，年龄" + age);
    }
}
public class Example03 {
    public static void main(String[] args) {
        Student stu = new Student();
        stu.name = "张三";
        stu.age = -18;
        stu.read();
    }
}
